/*
 * Copyright
 *
 */
package com.fare.fdc.action;

import java.util.Comparator;

import com.fare.taluo.vo.core.ChannelsPriceAnalysisVo;

/**
 * 【最低价按最低价升序排序】
 * 
 * @version
 * @author fangdongyang 2013-1-8 上午9:35:59
 * 
 */
public class ComparatorChannelsPriceAnalysis implements Comparator {

	public int compare(Object arg0, Object arg1) {
		ChannelsPriceAnalysisVo vo1 = (ChannelsPriceAnalysisVo) arg0;
		ChannelsPriceAnalysisVo vo2 = (ChannelsPriceAnalysisVo) arg1;
		int flag = Double.valueOf(vo1.getPriceDiffRatio()).compareTo(Double.valueOf(vo2.getPriceDiffRatio()));
		return flag;
	}

}
